import {action, observable} from 'mobx'
import {getCurrentSeason} from "../../util/season/season";

export class DishListStore {
	@observable season: number|null = getCurrentSeason();
	@observable searchText: string = '';

	@action changeSeason = (season: number) => {
		this.season = season;
	};

	@action changeSearchText = (searchText: string) => {
		this.searchText = searchText;
	};
}

export default new DishListStore();
